<strong>某网站</strong><br><br><br>

<strong>用户面板：</strong><br><br>
<?php if ( session( 'uid' )==null ) { ?>
	<a href='<?php echo U( 'Plat/User/login' ); ?>'>登录</a><br>
	<a href='<?php echo U( 'Plat/User/register' ); ?>'>注册</a><br>
<?php } else { ?>
	欢迎您，<?php echo session( 'name' ); ?>同学。<br>
	<a href='<?php echo U( 'Plat/User/logout' ); ?>'>登出</a><br>
<?php } ?>

<br>
<strong>商城版块：</strong><br><br>
<?php foreach( $proList as $pro ) { ?>
	<img src='<{$pro['photo']}>'/><br>
	商品名称：<{$pro['name']}><br>
	抢购价格：<{$pro['price']}><br>
	原始价格：<{$pro['orPrice']}><br>
	<a href='<?php echo U( 'Mall/Product/view', "id=$pro[id]" ) ?>'>点击浏览</a><br>
	<br>
<?php } ?>